package com.vcredit.creditcat.api;

import java.util.List;

import com.vcredit.creditcat.dto.emallcredit.AlipayProcessInDto;
import com.vcredit.creditcat.model.AuthAlipay;
import com.vcredit.creditcat.model.Cust;

public interface IAlipayProcessManager {
	/**
	 * 支付宝cookie登陆
	 * @param param
	 * @param cust
	 * @return
	 * @throws Exception
	 */
	public void alipayCookieCrawl(AlipayProcessInDto param,Cust cust) throws Exception;
	/**
	 * 支付宝采集状态遍历，定时器调用
	 * @return
	 */
	public List<AuthAlipay> crawlAlipay();
	/**
	 * 计划任务采集成功时调用
	 * @param param
	 * @throws Exception
	 */
	public void updateCrawlState(AuthAlipay param) throws Exception;
	/**
	 * 支付宝api采集 获取二维码
	 * @return 
	 * @throws Exception
	 */
	public String getQRCode(AlipayProcessInDto param,Cust cust) throws Exception;
	/**
	 * 支付宝api采集 验证二维码
	 * @param cust
	 * @throws Exception
	 */
	public String checkQRCode(Cust cust) throws Exception;
};